package com.example.pt.service;


import com.example.pt.dto.ApiResponse;
import com.example.pt.entity.Torrent;
import com.example.pt.entity.User;

import java.util.List;

public interface UserService  {
    ApiResponse<String> register(User user);
    User login(String username, String rawPassword);

    User getUserProfile(Long userId);
    void checkAndUpgradeUserLevel(User user);
    public void updateUser(User user);
    int deleteUsersWithLowRatio();
    User findById(Long id);

}